Optimal. Leaf size=247 \[ -\frac{\left (\sqrt{b} c-\sqrt{a} d\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c-\sqrt{a} d\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}-\frac{\left (\sqrt{a} d+\sqrt{b} c\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{a} d+\sqrt{b} c\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} a^{3/4} b^{3/4}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.150941, antiderivative size = 247, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 6, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.353, Rules used = {1168, 1162, 617, 204, 1165, 628} \[ -\frac{\left (\sqrt{b} c-\sqrt{a} d\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c-\sqrt{a} d\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}-\frac{\left (\sqrt{a} d+\sqrt{b} c\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{a} d+\sqrt{b} c\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} a^{3/4} b^{3/4}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1168
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rubi steps
\begin{align*} \int \frac{c+d x^2}{a+b x^4} \, dx &=\frac{\left (\frac{\sqrt{b} c}{\sqrt{a}}-d\right ) \int \frac{\sqrt{a} \sqrt{b}-b x^2}{a+b x^4} \, dx}{2 b}+\frac{\left (\frac{\sqrt{b} c}{\sqrt{a}}+d\right ) \int \frac{\sqrt{a} \sqrt{b}+b x^2}{a+b x^4} \, dx}{2 b}\\ &=\frac{\left (\frac{\sqrt{b} c}{\sqrt{a}}+d\right ) \int \frac{1}{\frac{\sqrt{a}}{\sqrt{b}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx}{4 b}+\frac{\left (\frac{\sqrt{b} c}{\sqrt{a}}+d\right ) \int \frac{1}{\frac{\sqrt{a}}{\sqrt{b}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx}{4 b}-\frac{\left (\sqrt{b} c-\sqrt{a} d\right ) \int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{b}}+2 x}{-\frac{\sqrt{a}}{\sqrt{b}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx}{4 \sqrt{2} a^{3/4} b^{3/4}}-\frac{\left (\sqrt{b} c-\sqrt{a} d\right ) \int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{b}}-2 x}{-\frac{\sqrt{a}}{\sqrt{b}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx}{4 \sqrt{2} a^{3/4} b^{3/4}}\\ &=-\frac{\left (\sqrt{b} c-\sqrt{a} d\right ) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c-\sqrt{a} d\right ) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c+\sqrt{a} d\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}-\frac{\left (\sqrt{b} c+\sqrt{a} d\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}\\ &=-\frac{\left (\sqrt{b} c+\sqrt{a} d\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c+\sqrt{a} d\right ) \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}-\frac{\left (\sqrt{b} c-\sqrt{a} d\right ) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c-\sqrt{a} d\right ) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}\\ \end{align*}
Mathematica [A] time = 0.074574, size = 183, normalized size = 0.74 \[ \frac{-\left (\sqrt{b} c-\sqrt{a} d\right ) \left (\log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )-\log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )\right )-2 \left (\sqrt{a} d+\sqrt{b} c\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )+2 \left (\sqrt{a} d+\sqrt{b} c\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{4 \sqrt{2} a^{3/4} b^{3/4}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.044, size = 260, normalized size = 1.1 \begin{align*}{\frac{c\sqrt{2}}{8\,a}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{c\sqrt{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }+{\frac{c\sqrt{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }+{\frac{d\sqrt{2}}{8\,b}\ln \left ({ \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{d\sqrt{2}}{4\,b}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{d\sqrt{2}}{4\,b}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.78205, size = 1544, normalized size = 6.25 \begin{align*} -\frac{1}{4} \, \sqrt{-\frac{a b \sqrt{-\frac{b^{2} c^{4} - 2 \, a b c^{2} d^{2} + a^{2} d^{4}}{a^{3} b^{3}}} + 2 \, c d}{a b}} \log \left (-{\left (b^{2} c^{4} - a^{2} d^{4}\right )} x +{\left (a^{3} b^{2} d \sqrt{-\frac{b^{2} c^{4} - 2 \, a b c^{2} d^{2} + a^{2} d^{4}}{a^{3} b^{3}}} + a b^{2} c^{3} - a^{2} b c d^{2}\right )} \sqrt{-\frac{a b \sqrt{-\frac{b^{2} c^{4} - 2 \, a b c^{2} d^{2} + a^{2} d^{4}}{a^{3} b^{3}}} + 2 \, c d}{a b}}\right ) + \frac{1}{4} \, \sqrt{-\frac{a b \sqrt{-\frac{b^{2} c^{4} - 2 \, a b c^{2} d^{2} + a^{2} d^{4}}{a^{3} b^{3}}} + 2 \, c d}{a b}} \log \left (-{\left (b^{2} c^{4} - a^{2} d^{4}\right )} x -{\left (a^{3} b^{2} d \sqrt{-\frac{b^{2} c^{4} - 2 \, a b c^{2} d^{2} + a^{2} d^{4}}{a^{3} b^{3}}} + a b^{2} c^{3} - a^{2} b c d^{2}\right )} \sqrt{-\frac{a b \sqrt{-\frac{b^{2} c^{4} - 2 \, a b c^{2} d^{2} + a^{2} d^{4}}{a^{3} b^{3}}} + 2 \, c d}{a b}}\right ) + \frac{1}{4} \, \sqrt{\frac{a b \sqrt{-\frac{b^{2} c^{4} - 2 \, a b c^{2} d^{2} + a^{2} d^{4}}{a^{3} b^{3}}} - 2 \, c d}{a b}} \log \left (-{\left (b^{2} c^{4} - a^{2} d^{4}\right )} x +{\left (a^{3} b^{2} d \sqrt{-\frac{b^{2} c^{4} - 2 \, a b c^{2} d^{2} + a^{2} d^{4}}{a^{3} b^{3}}} - a b^{2} c^{3} + a^{2} b c d^{2}\right )} \sqrt{\frac{a b \sqrt{-\frac{b^{2} c^{4} - 2 \, a b c^{2} d^{2} + a^{2} d^{4}}{a^{3} b^{3}}} - 2 \, c d}{a b}}\right ) - \frac{1}{4} \, \sqrt{\frac{a b \sqrt{-\frac{b^{2} c^{4} - 2 \, a b c^{2} d^{2} + a^{2} d^{4}}{a^{3} b^{3}}} - 2 \, c d}{a b}} \log \left (-{\left (b^{2} c^{4} - a^{2} d^{4}\right )} x -{\left (a^{3} b^{2} d \sqrt{-\frac{b^{2} c^{4} - 2 \, a b c^{2} d^{2} + a^{2} d^{4}}{a^{3} b^{3}}} - a b^{2} c^{3} + a^{2} b c d^{2}\right )} \sqrt{\frac{a b \sqrt{-\frac{b^{2} c^{4} - 2 \, a b c^{2} d^{2} + a^{2} d^{4}}{a^{3} b^{3}}} - 2 \, c d}{a b}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.59846, size = 109, normalized size = 0.44 \begin{align*} \operatorname{RootSum}{\left (256 t^{4} a^{3} b^{3} + 64 t^{2} a^{2} b^{2} c d + a^{2} d^{4} + 2 a b c^{2} d^{2} + b^{2} c^{4}, \left ( t \mapsto t \log{\left (x + \frac{64 t^{3} a^{3} b^{2} d + 12 t a^{2} b c d^{2} - 4 t a b^{2} c^{3}}{a^{2} d^{4} - b^{2} c^{4}} \right )} \right )\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18441, size = 325, normalized size = 1.32 \begin{align*} \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c + \left (a b^{3}\right )^{\frac{3}{4}} d\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x + \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} + \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c + \left (a b^{3}\right )^{\frac{3}{4}} d\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x - \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} + \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{3}{4}} d\right )} \log \left (x^{2} + \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b^{3}} - \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{3}{4}} d\right )} \log \left (x^{2} - \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]